<?php
class formi_html
{
    public static function render_attributes($attributes)
    {
        $view = '';

        foreach($attributes as $attribute_name => $attribute_value)
        {
            $view .= $attribute_name.'="' . $attribute_value .'" ';
        }

        return $view;
    }
}